package com.mtw.bbs.bbsUser.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

/**
 * 用户角色
 *
 * @author mo
 * @email mo
 * @date 2023-10-18 15:44:13
 */
@Data
@TableName("os_user_role")
@ApiModel("用户角色")
public class UserRole implements Serializable{
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	@ApiModelProperty(value = "主键")
	private String id;
	/**
	 * 用户id
	 */
	@ApiModelProperty(value = "用户id")
	private String userId;
	/**
	 * 角色id
	 */
	@ApiModelProperty(value = "角色id")
	private String roleId;


	public UserRole(){}

	public UserRole(String userId,String roleId){
		this.userId = userId;
		this.roleId = roleId;
	}


}
